import request from '@/utils/request'

function loginApi(loginForm) {
    return request({
        method: 'post',
        url: '/login',
        data: loginForm
    })
}

function getUserInfoApi() {
    return request({
        method: 'get',
        url: '/profile'
    })
}

const Login = {
    loginApi,
    getUserInfoApi
}

export default Login